import { ResPage, SysJobTrigger } from "@/api/interface/index";
import { CANROCNET } from "@/api/config/servicePort";
import http from "@/api";

/**
 * 获取作业触发器列表
 *
 * @param params 作业触发器查询参数
 * @returns 返回作业触发器列表
 */
export const getJobTriggerPageApi = (params: SysJobTrigger.PageParams) => {
  return http.get<ResPage<SysJobTrigger.Result>>(`${CANROCNET}/api/sys-job-trigger/page`, params);
};
